package com.dodi.spring.mybatis.springMybatisScanner;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserServiceTest {

	public static void main(String[] args) {

		ApplicationContext context = new ClassPathXmlApplicationContext("com/dodi/spring/mybatis/springMybatisScanner/applicationContext.xml");
		
		UserMapper userDao = (UserMapper) context.getBean("userMapper");
		
		User user = userDao.getUser(1);
		
		System.out.println(user);
	}

}
